﻿$.using("kxtx.core.events.service");

kxtx.core.events.service.setup = function (cfg) {
    kxtx.core.events.service.setup.config = { provider: null };
    kxtx.core.events.service.setup.config = $.extend(this.config, cfg);
};

kxtx.core.events.service.publish = function (subject) {
    kxtx.core.events.service.setup.config.provider.publish(subject, arguments[1],
                                                                arguments[2],
                                                                arguments[3],
                                                                arguments[4],
                                                                arguments[5],
                                                                arguments[6],
                                                                arguments[7],
                                                                arguments[8],
                                                                arguments[9],
                                                                arguments[10]);
};
kxtx.core.events.service.subscribe = function (subject, handler) {
    kxtx.core.events.service.setup.config.provider.subscribe(subject, handler);
};

